home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Windows / WindowController.h < prev    next >
Text File  |  1997-06-28  |  1KB  |  62 lines

  1. // WindowController.h
  2.  
  3. #ifndef WindowController_h
  4. #define WindowController_h
  5.  
  6. #ifndef Proxy_h
  7. #include "Proxy.h"
  8. #endif
  9. #ifndef Integers_h
  10. #include "Integers.h"
  11. #endif
  12. #ifndef Rectangle_h
  13. #include "Rectangle.h"
  14. #endif
  15. #ifndef ConstPString_h
  16. #include "ConstPString.h"
  17. #endif
  18.  
  19. class WindowFocus;
  20.  
  21. class WindowController
  22.   {
  23.     private:
  24.         Proxy<bool>& visible;
  25.         Proxy<bool>& zoomed;
  26.         Proxy<Rectangle>& bounds;
  27.         Proxy<ConstPString>& name;
  28.         Proxy<uint32>& index;
  29.         
  30.     public:
  31.         WindowController( Proxy<bool>& visibility,
  32.                                 Proxy<bool>& zoomedness,
  33.                                 Proxy<Rectangle>& theBounds,
  34.                                 Proxy<ConstPString>& theName,
  35.                                 Proxy<uint32>& theIndex )
  36.           : visible( visibility ),
  37.              zoomed( zoomedness ),
  38.              bounds( theBounds ),
  39.              name( theName ),
  40.              index( theIndex )
  41.           {}
  42.         
  43.         Proxy<bool>& Visible()                                { return visible; }
  44.         const ConstProxy<bool>& Visible() const        { return visible; }
  45.         
  46.         Proxy<bool>& Zoomed()                                { return zoomed; }
  47.         const ConstProxy<bool>& Zoomed() const            { return zoomed; }
  48.         
  49.         Proxy<Rectangle>& Bounds()                            { return bounds; }
  50.         const ConstProxy<Rectangle>& Bounds() const    { return bounds; }
  51.  
  52.         Proxy<ConstPString>& Name()                        { return name; }
  53.         const ConstProxy<ConstPString>& Name() const    { return name; }
  54.         
  55.         Proxy<uint32>& Index()                                { return index; }
  56.         const ConstProxy<uint32>& Index() const        { return index; }
  57.         
  58.         
  59.   };
  60.  
  61. #endif
  62.